import {msgList,unReadMsgList,readedMsg} from "@/services/notification/notificationService";

export default {
    namespace: 'notificationModel',

    state: {},

    effects: {
        /**
         * 消息查询列表接口
         */* msgList({payload, callback}, {call, put}) {
            const response = yield call(msgList, payload);
            if (callback) callback(response);
        },
        /**
         * 我的未读消息接口
         */* unReadMsgList({payload, callback}, {call, put}) {
            const response = yield call(unReadMsgList, payload);
            if (callback) callback(response);
        },
        /**
         * 消息已读接口
         */* readedMsg({payload, callback}, {call, put}) {
            const response = yield call(readedMsg, payload);
            if (callback) callback(response);
        },
    },

    reducers: {}
}
